package space.misiro.ledgers.app

import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.builder.SpringApplicationBuilder
import org.springframework.boot.context.event.ApplicationReadyEvent
import org.springframework.context.ApplicationListener
import org.springframework.core.env.Environment
import org.springframework.scheduling.annotation.EnableScheduling

@EnableScheduling
@SpringBootApplication
class LedgersApplication : ApplicationListener<ApplicationReadyEvent> {

    @Autowired
    private lateinit var env: Environment

    override fun onApplicationEvent(event: ApplicationReadyEvent) {
    }
}

fun main(args: Array<String>) {
    SpringApplicationBuilder(LedgersApplication::class.java).run(*args)
}